import { defineStore } from 'pinia';

export const mainStore = defineStore('main', {
    state: () => {
        return {
           supplierLoading:true,
           supplierLibraryLoading:true,
           centerDialogVisible: false,
           supplierDialogVisible: false,
           supplierLibraryDialogVisible: false,
           dialogCartVisible: false,
           centerDialogFileVisible: false,
           member_remaining_date:0,
           addCart: {},
           supplierTableData: [],
           supplierTotal: "",
           historyRecord: [],
           historyHot: {},
           historyHotNum: 0,
           historyRecordNum: 0,
           searchRecordShow: false,
           membershipLevel: "",
           userName: "",
           memberRemainingDate: 0,
           login: 0,
           requirementCount: 0,
           purchasePlanCount: 0,
           quotationCount: 0,
           accountCount:0,
           orderCount: 0,
           shipmentPlanCount: 0,
           shipmentsCount: 0,
           historyLogCount:0,
           warehouseCount: 0,
           mySupplierCount: 0,
           afterserviceCount: 0,
           membershipStart: '',
           membershipStop: '',
           email: '',
           shopCartNum:0,
           productCartNum:0,
           scanCartNum:0,
           catalogCartNum:0,
           skCartNum:0,
           supplier_url:'',
           isInView: false,
           logo:"https://comesoon.com/web/content/1583831?download=true",
           menuShow:"",
           company:'',
           avatar: '',
		   site:'Thailand',
           memberType: -1
        }
    }
});
